﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.IO;

namespace WebApplication1
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "DataService" in code, svc and config file together.
    public class DataService : IDataService
    {        
        static DataService()
        {
        }

        public DataService()
        {
        }
                
        public byte[] ReadAllImageBytes(string fileName)
        {
            return File.ReadAllBytes(fileName);
        }
        
        public byte[] ReadAllThumbnailBytes(string fileName)
        {
            return File.ReadAllBytes(fileName);
        }

        public void WriteAllBytes(string fileName, byte[] bytes)
        {
            File.WriteAllBytes(fileName, bytes);
        }

        public void Copy(string orig, string newFileName)
        {
            File.Copy(orig, newFileName);
        }

        public void Move(string orig, string newFileName)
        {
            File.Move(orig, newFileName);
        }

        public void Delete(string fileName)
        {
            File.Delete(fileName);
        }

        public bool Exists(string fileName)
        {
            return File.Exists(fileName);
        }

        public void SetAttributes(string fileName, FileAttributes attribs)
        {
            File.SetAttributes(fileName, attribs);
        }

    }
}
